// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_hm_sslcertificates
// * CreateDate    : 2014-06-05 18:30:02
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:02
// * LastChanger   : 2014-06-05 18:30:02
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class HmSslcertificatesEntity : EntityBase
    {
        public HmSslcertificatesTable TableSchema
        {
            get
            {
                return HmSslcertificatesTable.Current;
            }
		}
		
		public HmSslcertificatesEntity()
        {

        }
		
		public HmSslcertificatesEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Sslcertificateid = Convert.ToInt64(CommonFunctions.ToObject(dr["sslcertificateid"]));
			this.Sslcertificatename = Convert.ToString(CommonFunctions.ToObject(dr["sslcertificatename"]));
			this.Sslcertificatefile = Convert.ToString(CommonFunctions.ToObject(dr["sslcertificatefile"]));
			this.Sslprivatekeyfile = Convert.ToString(CommonFunctions.ToObject(dr["sslprivatekeyfile"]));
        }
		
		public HmSslcertificatesEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Sslcertificateid = Convert.ToInt64(CommonFunctions.ToObject(dr["sslcertificateid"]));
			this.Sslcertificatename = Convert.ToString(CommonFunctions.ToObject(dr["sslcertificatename"]));
			this.Sslcertificatefile = Convert.ToString(CommonFunctions.ToObject(dr["sslcertificatefile"]));
			this.Sslprivatekeyfile = Convert.ToString(CommonFunctions.ToObject(dr["sslprivatekeyfile"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return HmSslcertificatesTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public long Sslcertificateid
        {
            get { return Convert.ToInt64(GetData(HmSslcertificatesTable.C_sslcertificateid)); }
            set { SetData(HmSslcertificatesTable.C_sslcertificateid, value); }
        }
		
        [DataMember]
        public string Sslcertificatename
        {
            get { return Convert.ToString(GetData(HmSslcertificatesTable.C_sslcertificatename)); }
            set { SetData(HmSslcertificatesTable.C_sslcertificatename, value); }
        }
		
        [DataMember]
        public string Sslcertificatefile
        {
            get { return Convert.ToString(GetData(HmSslcertificatesTable.C_sslcertificatefile)); }
            set { SetData(HmSslcertificatesTable.C_sslcertificatefile, value); }
        }
		
        [DataMember]
        public string Sslprivatekeyfile
        {
            get { return Convert.ToString(GetData(HmSslcertificatesTable.C_sslprivatekeyfile)); }
            set { SetData(HmSslcertificatesTable.C_sslprivatekeyfile, value); }
        }
		
		#endregion
	}
	
	
}	

